package com.xq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuven
 * @since 2025-07-03
 */
@Getter
@Setter
@TableName("dms_devices")
public class DmsDevices implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("device_id")
    private String deviceId;

    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;

    /**
     * 设备类型
     */
    @TableField("device_type")
    private String deviceType;

    /**
     * 设备所属用户ID
     */
    @TableField("owner_user_id")
    private String ownerUserId;

    /**
     * 设备所属组织ID
     */
    @TableField("owner_org_id")
    private String ownerOrgId;

    /**
     * 设备所属分组ID
     */
    @TableField("group_id")
    private String groupId;

    /**
     * 设备通信协议类型
     */
    @TableField("protocol_type")
    private String protocolType;

    /**
     * 设备状态
     */
    @TableField("status")
    private String status;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;

    /**
     * 最后活跃时间
     */
    @TableField("last_active_time")
    private LocalDateTime lastActiveTime;


}
